<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>hover方法</title>
</head>
<body>
<span>span1</span>
<span>span2</span>
<span>span3</span>
<script src="../js/jquery-1.4.2.js"></script>
<script>
    $("span").hover(function(){
        $(this).css("color","red");

    },function () {
        $(this).css("color","yellow");

    });

</script>

</body>
</html>